package com.xdcplus.web.common.enums;

public enum QaAbnormalOrderTypeEnum {
    A(0L, "A类"),
    B(1L, "B类"),
    C(2L, "C类"),
    ;

    private Long code;

    private String msg;

    public static String getMsg(Long code) {
        for (QaAbnormalOrderTypeEnum ele : values()) {
            if(ele.getCode().equals(code)) {return ele.getMsg();}
        }
        return null;
    }

    QaAbnormalOrderTypeEnum(Long code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Long getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
